@isTest
private class DiscussionOverlayTopicEditTest {
	
    public static String TEAMID =null;
    
    public static testMethod void testDiscussion() {
		GenerateEnvironmentTest.gen();
        Test.startTest();
		
		DiscussionOverlayTopicEdit discussion = new DiscussionOverlayTopicEdit();
    	discussion.getForumData();


		System.currentPageReference().getParameters().put('id', GenerateEnvironmentTest.newDiscussionForum.Id);
		
		DiscussionOverlayTopicEdit discussion1 = new DiscussionOverlayTopicEdit();

    	DiscussionOverlayTopicEdit.DiscussionTopic topic = new DiscussionOverlayTopicEdit.DiscussionTopic();
    	
    	topic.Name = 'Test';
    	topic.TopicIdToUpdate = GenerateEnvironmentTest.newTopic.Id;
    	topic.MessageIdToUpdate = GenerateEnvironmentTest.newMessage.Id;
    	
    	discussion1.setTopic(topic);
    	discussion1.saveTopic();
    	discussion1.updateTopic();
    	discussion1.getTeamId();
    	discussion1.getTopic();
    	discussion1.getForumData();
		discussion1.dummyRefresh();
    	
    	Test.stopTest();
    }
}